<?php

Class CaiTypeModel extends Model {

    protected $_map = array(
        'id'   => 'type_id',
    );
    protected $_auto = array(
        array('type_shop_id', 'getShop', 1, 'callback'),
    );

    public function getShop() {
        // $shop = D("Shop")->from_uid(session("uid"));
        return session("shop_id");
    }

}

?>
